package com.ruoyi.equipment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.equipment.mapper.ZjutEquipmentMapper;
import com.ruoyi.equipment.domain.ZjutEquipment;
import com.ruoyi.equipment.service.IZjutEquipmentService;

/**
 * 设备Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-09
 */
@Service
public class ZjutEquipmentServiceImpl implements IZjutEquipmentService 
{
    @Autowired
    private ZjutEquipmentMapper zjutEquipmentMapper;

    /**
     * 查询设备
     * 
     * @param equipmentId 设备ID
     * @return 设备
     */
    @Override
    public ZjutEquipment selectZjutEquipmentById(Long equipmentId)
    {
        return zjutEquipmentMapper.selectZjutEquipmentById(equipmentId);
    }

    /**
     * 查询设备列表
     * 
     * @param zjutEquipment 设备
     * @return 设备
     */
    @Override
    public List<ZjutEquipment> selectZjutEquipmentList(ZjutEquipment zjutEquipment)
    {
        return zjutEquipmentMapper.selectZjutEquipmentList(zjutEquipment);
    }

    /**
     * 新增设备
     * 
     * @param zjutEquipment 设备
     * @return 结果
     */
    @Override
    public int insertZjutEquipment(ZjutEquipment zjutEquipment)
    {
        return zjutEquipmentMapper.insertZjutEquipment(zjutEquipment);
    }

    /**
     * 修改设备
     * 
     * @param zjutEquipment 设备
     * @return 结果
     */
    @Override
    public int updateZjutEquipment(ZjutEquipment zjutEquipment)
    {
        return zjutEquipmentMapper.updateZjutEquipment(zjutEquipment);
    }

    /**
     * 批量删除设备
     * 
     * @param equipmentIds 需要删除的设备ID
     * @return 结果
     */
    @Override
    public int deleteZjutEquipmentByIds(Long[] equipmentIds)
    {
        return zjutEquipmentMapper.deleteZjutEquipmentByIds(equipmentIds);
    }

    /**
     * 删除设备信息
     * 
     * @param equipmentId 设备ID
     * @return 结果
     */
    @Override
    public int deleteZjutEquipmentById(Long equipmentId)
    {
        return zjutEquipmentMapper.deleteZjutEquipmentById(equipmentId);
    }
}
